package teach.aistar.mapper;

import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import teach.aistar.model.entity.Chat;


import java.util.List;

public interface ChatMapper {
    @Select("select * from chat where chat_type=#{textType}")
    List<Chat> selectByType(@Param("textType") int textType);

    int insert(Chat chat);
}
